const obj1 = {
  a: 10,
  b: 20,
  sum() {
    return this.a + this.b;
  },
};
const obj2 = {
  a: 10,
  b: 20,
  sum() {
    return this.a + this.b;
  },
};

console.log(obj1 === obj2);

const obj = new Object(obj1);
console.log(obj === obj1);

const obj3 = Object.create(null);
console.log(obj3);
const obj4 = new Object();
console.log(obj4.__proto__);
console.log(obj3 === obj4.__proto__);

const obj5 = Object.create({
  a: 100,
  b: 200,
  sum() {
    return this.a + this.b;
  },
});
console.log(obj5.__proto__);

const obj6 = Object.create(obj5);
console.log(obj6.__proto__.__proto__ === obj5.__proto__);
